

import axios from '../utils/axios'

export function getHome() {
  return axios.get('/menu/pageList');
}
export function getHome2() {
  return axios.get('/banner/getBanner');
}
export function addAddress(params) {
  return axios.post('/address', params);
}

export function EditAddress(params) {
  return axios.put('/address', params);
}

export function DeleteAddress(id) {
  return axios.delete(`/address/${id}`);
}

export function getDefaultAddress() {
  return axios.get('/address/default');
}

